package com.lj.universalframework.http

import okhttp3.OkHttpClient
import retrofit2.Retrofit

/**
 * <p>文件名：RequestDsl
 * <p>创建者：LJ
 * <p>创建日期：2020\7\14 0014 11:39
 * <p>描述：
 */
class RequestDsl {

    internal var buidOkHttp: ((OkHttpClient.Builder) -> OkHttpClient.Builder)? = null

    internal var buidRetrofit: ((Retrofit.Builder) -> Retrofit.Builder)? = null

    infix fun okHttp(builder: ((OkHttpClient.Builder) -> OkHttpClient.Builder)?) {
        this.buidOkHttp = builder
    }

    infix fun retrofit(builder: ((Retrofit.Builder) -> Retrofit.Builder)?) {
        this.buidRetrofit = builder
    }
}